package org.colcon.web.client.ui;

import org.colcon.web.client.Collective_Congress;
import org.colcon.web.model.framework.IContainer;
import org.colcon.web.model.framework.IItem;

public class ContainerPanel extends ItemPanel 
{
	public ContainerPanel(Collective_Congress client, IContainer container) 
	{
		super(client, container);
		
		for(IItem item : container.getChildren())
			add(new LinkPanel(client, item.getPath()));
	}
	
	public IContainer getContainer()
	{
		return (IContainer) getItem();
	}
}
